﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;
namespace QuanLiDiemDanh.Database
{
    public class View_Data
    {
        View_Data ac = new View_Data();
        public void InsertData_GiangVien(string thu, string khu)
        {
            SqlConnection con = ac.GetConnect();
            con.Open();
            SqlCommand cmd = new SqlCommand("ThemGiangVien", con);
            cmd.CommandType = System.Data.CommandType.StoredProcedure;
            cmd.Parameters.Add("@magiangvien", System.Data.SqlDbType.Int).Value = Convert.ToInt32(magiangvien);
            cmd.Parameters.Add("@tengiangvien", System.Data.SqlDbType.NVarChar).Value = tengiangvien;
            cmd.Parameters.Add("@bomon", System.Data.SqlDbType.NVarChar).Value = bomon;
            cmd.Parameters.Add("@khoavien", System.Data.SqlDbType.NVarChar).Value = khoavien;
            cmd.ExecuteNonQuery();
            cmd.Dispose();
            con.Close();
        }
    }
}